package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据库字段对象 column_mng
 * 
 * @author weicc
 * @date 2023-09-23
 */
public class ColumnMng extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 表id */
    @Excel(name = "表id")
    private String tableId;

    /** 字段名称 */
    @Excel(name = "字段名称")
    private String columnName;

    /** 字段注释 */
    @Excel(name = "字段注释")
    private String columnComment;

    /** 字段类型 */
    @Excel(name = "字段类型")
    private String columnType;

    /** 字段长度 */
    @Excel(name = "字段长度")
    private String columnLength;

    /** 是否主键(0 否 1 是) */
    @Excel(name = "是否主键(0 否 1 是)")
    private String isPrimary;

    /** $column.columnComment */
    private String delFlag;

    /** 来源表id */
    @Excel(name = "来源表id")
    private String relTableId;

    /** 来源表名 */
    @Excel(name = "来源表名")
    private String relTableName;

    /** 来源字段id */
    @Excel(name = "来源字段id")
    private String relColumnId;

    /** 来源字段名 */
    @Excel(name = "来源字段名")
    private String relColumnName;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTableId(String tableId) 
    {
        this.tableId = tableId;
    }

    public String getTableId() 
    {
        return tableId;
    }
    public void setColumnName(String columnName) 
    {
        this.columnName = columnName;
    }

    public String getColumnName() 
    {
        return columnName;
    }
    public void setColumnComment(String columnComment) 
    {
        this.columnComment = columnComment;
    }

    public String getColumnComment() 
    {
        return columnComment;
    }
    public void setColumnType(String columnType) 
    {
        this.columnType = columnType;
    }

    public String getColumnType() 
    {
        return columnType;
    }
    public void setColumnLength(String columnLength) 
    {
        this.columnLength = columnLength;
    }

    public String getColumnLength() 
    {
        return columnLength;
    }
    public void setIsPrimary(String isPrimary) 
    {
        this.isPrimary = isPrimary;
    }

    public String getIsPrimary() 
    {
        return isPrimary;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setRelTableId(String relTableId) 
    {
        this.relTableId = relTableId;
    }

    public String getRelTableId() 
    {
        return relTableId;
    }
    public void setRelTableName(String relTableName) 
    {
        this.relTableName = relTableName;
    }

    public String getRelTableName() 
    {
        return relTableName;
    }
    public void setRelColumnId(String relColumnId) 
    {
        this.relColumnId = relColumnId;
    }

    public String getRelColumnId() 
    {
        return relColumnId;
    }
    public void setRelColumnName(String relColumnName) 
    {
        this.relColumnName = relColumnName;
    }

    public String getRelColumnName() 
    {
        return relColumnName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tableId", getTableId())
            .append("columnName", getColumnName())
            .append("columnComment", getColumnComment())
            .append("columnType", getColumnType())
            .append("columnLength", getColumnLength())
            .append("isPrimary", getIsPrimary())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("relTableId", getRelTableId())
            .append("relTableName", getRelTableName())
            .append("relColumnId", getRelColumnId())
            .append("relColumnName", getRelColumnName())
            .toString();
    }
}
